﻿using Biz;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BusinessLayer.Dal
{
    class OrderedProductDal
    {
        DatabaseContext db;
        public OrderedProductDal( /* DatabaseContext db */ )
        {
            this.db = DatabaseContext.DB;
        }

        public void Insert(OrderedProduct detail)
        {
            db.OrderDetails.Add(detail);
            db.SaveChanges();
        }
    }
}
